/**
 * Created by MADHUKAR on 1/10/2015.
 */
var ValidationRules = ValidationRules || {};//

//namespacing
ValidationRules.Rules = [


    {
        elementName: '#nameInput',
        validators: ['required','minlength'],
        errorMessage: ["Please enter a Valid Name","Please enter atleast min of 5 characters"],
        params: [true,5]
    },
    {
        elementName: '#addressInput',
        validators: ['required'],
        errorMessage: ["Please enter a Valid Address"],
        params: [true]
    },
    {
        elementName: '#phoneInput',
        validators: ['required'],
        errorMessage: ["Please enter a Valid Phone"],
        params: [true]
    },

    {
        elementName: '#emailInput',
        validators: ['required','email'],
        errorMessage: ["Please enter a Valid Input","Please enter a Valid Email"],
        params: [true,true]
    },
    {
        elementName: '#password',
        validators: ['required'],
        errorMessage: ["Please enter a title."],
        params: [true]
    }

];

